package vip.xiaonuo.sys.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安订单登记挂账
 * </p>
 *
 * @author wangy
 * @since 2025-06-26
 */
@Data
@TableName("sxo_safety_reg_credit")
@Schema(name = "SxoSafetyRegCredit对象", description = "平安订单登记挂账")
public class SxoSafetyRegCredit implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "冻结充值订单ID")
    @TableField("safety_order_id")
    private String safetyOrderId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @Schema(description = "见证子账户的账号")
    @TableField("sub_acct_no")
    private String subAcctNo;

    @Schema(description = "交易网会员代码")
    @TableField("tran_net_member_code")
    private String tranNetMemberCode;

    @Schema(description = "挂账订单号")
    @TableField("reg_order_no")
    private String regOrderNo;

    @Schema(description = "挂账金额")
    @TableField("suspend_amt")
    private String suspendAmt;

    @Schema(description = "交易费用")
    @TableField("tran_fee")
    private String tranFee;

    @Schema(description = "挂账状态（-1:挂账失败；0：未挂账;1：挂账成功；2:挂账撤销）")
    @TableField("reg_status")
    private Integer regStatus;

    @Schema(description = "挂账/撤退时间")
    @TableField("reg_time")
    private String regTime;

    @Schema(description = "交易流水号")
    @TableField("cnsmr_seq_no")
    private String cnsmrSeqNo;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "电商见证宝系统生成的流水号")
    @TableField("jzb_accept_seq_no")
    private String jzbAcceptSeqNo;

    @Schema(description = "撤销交易流水号")
    @TableField("rev_cnsmr_seq_no")
    private String revCnsmrSeqNo;

    @Schema(description = "撤销-电商见证宝系统生成的流水号")
    @TableField("jzb_accept_rev_no")
    private String jzbAcceptRevNo;

    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @Schema(description = "状态（0正常, 1删除）")
    @TableField("status")
    private Integer status;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;
}
